MKDOT=../mkdot.pl
POSTPROC=../postprocsvg.pl

all:	nodes2.txt b-straight.svg bslim-straight.svg b-curved.svg bslim-curved.svg

nodes2.txt :  nodes.txt $(MKDOT)
	cat nodes.txt | perl $(MKDOT) --svnroot $(DOTSVNROOT) --rewrite nodes2.txt

b-straight.dot :  nodes.txt $(MKDOT)
	cat nodes.txt | perl $(MKDOT) > b-straight.dot

bslim-straight.dot :  nodes.txt $(MKDOT)
	cat nodes.txt | perl $(MKDOT) --slim > bslim-straight.dot

b-curved.dot :  nodes.txt $(MKDOT)
	cat nodes.txt | perl $(MKDOT) --curves > b-curved.dot

bslim-curved.dot :  nodes.txt $(MKDOT)
	cat nodes.txt | perl $(MKDOT) --slim --curves > bslim-curved.dot

%.svg :  %.dot
	dot -Kdot -Tpdf -o$*.pdf $*.dot
	dot -Kdot -Tsvg -o$*0.svg $*.dot
	cat $*0.svg | perl $(POSTPROC) >$*.svg
